package org.opens.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.apache.ibatis.type.Alias;

import java.util.Date;

/**
 * @Date 2021/5/23 14:08
 * @Created by 99126
 */
@Data
@TableName(value = "emp")
@Alias("emp")
public class Emp {

    @TableId(value = "empno", type = IdType.INPUT)
    private Integer empno;

    @TableField(value = "ename")
    private String ename;

    @TableField(value = "job")
    private String job;

    @TableField(value = "mgr")
    private Integer mgr;

    @TableField(value = "hiredate")
    private Date hiredate;

    @TableField(value = "sal")
    private Double sal;

    @TableField(value = "comm")
    private Double comm;

    @TableField(value = "deptno")
    private Integer deptno;

}
